from django.urls import path

from course import views

from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('hot',views.HotWordView,basename='hot')
urlpatterns = [
    path('category/', views.CategoryView.as_view()),
    path('nowcate/', views.NowCate.as_view()),
    path('direction/', views.Direction.as_view()),
    path('childcate/', views.ChildCate.as_view()),
    path('course/', views.CourseList.as_view()),
    path('detail/', views.Detail.as_view()),
    path('hotword/', views.HotWord.as_view()),

]

urlpatterns += router.urls

